<div class = "sysManager-container pt20" ng-init = "tab = 'pwd'">
    <style>
        .sysManager-container .ui.secondary.menu .active.item {
            background: #db2828;
        }

        .sysManager-container .ui.secondary.menu .active.item span {
            color: #fff;
        }
    </style>
    <div class = "ui secondary  menu pl20">
        <b class = "item" ng-class = "{active : tab == 'pwd',cp:true}" ng-click = "tab = 'pwd'">
            <span>密码管理</span>
        </b>
        <b class = "item" ng-class = "{active : tab == 'account',cp:true}" ng-click = "tab = 'account'" ng-show = "userInfo.type == 'administrator'">
            <span>账号管理</span>
        </b>
    </div>
    <div>
        <div ng-show = "tab == 'pwd'" class = "mt20">
            <div class = "bc" style = "width:400px;">
                <form class = "ui form">
                    <div class = "field">
                        <label>原密码</label>
                        <input type = "password" name = "first-name" placeholder = "原密码" ng-model = "pwd.data.oldPwd">
                    </div>
                    <div class = "field">
                        <label>新密码</label>
                        <input type = "password" name = "last-name" placeholder = "新密码长度至少为6位" ng-model = "pwd.data.newPwd">
                    </div>
                    <div class = "field">
                        <label>新密码确认</label>
                        <input type = "password" name = "last-name" placeholder = "新密码确认" ng-model = "pwd.data.newPwdRe">
                    </div>
                    <p class = "red tc" ng-show = "pwd.errInfo">{{pwd.errInfo}}</p>
                    <button class = "ui button red" type = "button" ng-click = "pwd.submit()">确定</button>
                    <button class = "ui button" type = "button" ng-click = "pwd.reset()">重置</button>
                </form>
            </div>
        </div>
        <div ng-show = "tab == 'account'" class = "mt20">
            <div class = "bc" style = "width:400px;">
                <form class = "ui form">
                    <div class = "field">
                        <label>子账号名</label>
                        <input type = 'text' name = "first-name" placeholder = "子账号名" ng-model = "account.name">
                    </div>
                    <p class = "red tc" ng-show = "pwd.errInfo">{{account.errInfo}}</p>
                    <p class = "tc">密码默认是123456</p>
                    <button class = "ui button red" type = "button" ng-click = "account.submit()">确定</button>
                </form>
            </div>
        </div>
    </div>
</div>